package com.lzh.financial.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzh.financial.bean.PUserInfoBean;
import com.lzh.financial.bean.PpayBean;
import com.lzh.financial.dao.IPayMapper;
import com.lzh.financial.dao.IUserInfoMapper;
import com.lzh.financial.service.IPayService;
import com.lzh.financial.service.IUserInfoService;
import com.lzh.financial.util.MapperFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @author reborn0530
 * 用户service实现类
 */
@Service
@Slf4j
public class PayServiceImpl extends ServiceImpl<IPayMapper, PpayBean> implements IPayService {


    @Override
    public List<PpayBean> getMoneyAll(Integer userId, Integer way,Integer order) {
        return getBaseMapper().getMoneyAll(userId,way,order);
    }

    @Override
    public List<PpayBean> getMoneyByDate(Integer userId, Integer way) {
        return getBaseMapper().getMoneyByDate(userId,way);
    }
    @Override
    public List<PpayBean> getOrderType(Integer userId, Integer way, Integer pmonth, Integer pyear) {
        List<PpayBean> list = getBaseMapper().getOrderType(userId, way, pmonth, pyear);
        return list==null? Collections.emptyList():list;
    }

}
